package com.action;
import java.util.Map;

import com.service.StudentService;  
import com.opensymphony.xwork2.ActionContext; 
import com.opensymphony.xwork2.ActionSupport;

public class listAction extends ActionSupport {
	 private StudentService studentService;  
	  
	    public StudentService getUserService() {  
	        return studentService;  
	    }  
	  
	    public void setUserService(StudentService studentService) {  
	        this.studentService = studentService;  
	    }  
	      
	    @SuppressWarnings("unchecked")  
	    @Override  
	    public String execute() throws Exception {  
	          
	        Map request = (Map) ActionContext.getContext().get("request");  
	          
	        request.put("list", this.studentService.findAllUsers());  
	        return SUCCESS;  
	    }  
}
